<?xml version='1.0' encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="cpip.css" rel="stylesheet" type="text/css" />
    <title>File: /Users/paulross/dev/linux/linux-3.13/arch/x86/include/uapi/asm/ptrace.h</title>
  </head>
  <body>
    <h1>File: /Users/paulross/dev/linux/linux-3.13/arch/x86/include/uapi/asm/ptrace.h</h1>
    <p>Green shading in the line number column
means the source is part of the translation unit, red means it is conditionally excluded.
Highlighted line numbers link to the translation unit page. Highlighted macros link to
the macro page.</p>
    <pre><a name="1" /><span class="Maybe">       1:</span> <span class="f">#</span><span class="n">ifndef</span> <a href="cpu.c_macros_ref.html#_X1VBUElfQVNNX1g4Nl9QVFJBQ0VfSF8w"><span class="b">_UAPI_ASM_X86_PTRACE_H</span></a>
<a name="2" /><span class="Maybe">       2:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X1VBUElfQVNNX1g4Nl9QVFJBQ0VfSF8w"><span class="b">_UAPI_ASM_X86_PTRACE_H</span></a>
<a name="3" /><span class="Maybe">       3:</span> 
<a name="4" /><span class="Maybe">       4:</span> <span class="f">#</span><span class="n">include</span> <span class="f">&lt;</span><span class="b">linux</span><span class="f">/</span><span class="b">compiler</span><span class="f">.</span><span class="b">h</span><span class="f">&gt;</span>    <span class="k">/* For __user */</span>
<a name="5" /><span class="Maybe">       5:</span> <span class="f">#</span><span class="n">include</span> <span class="f">&lt;</span><span class="m">asm</span><span class="f">/</span><span class="b">ptrace</span><span class="f">-</span><span class="b">abi</span><span class="f">.</span><span class="b">h</span><span class="f">&gt;</span>
<a name="6" /><span class="Maybe">       6:</span> <span class="f">#</span><span class="n">include</span> <span class="f">&lt;</span><span class="m">asm</span><span class="f">/</span><span class="b">processor</span><span class="f">-</span><span class="b">flags</span><span class="f">.</span><span class="b">h</span><span class="f">&gt;</span>
<a name="7" /><span class="Maybe">       7:</span> 
<a name="8" /><span class="Maybe">       8:</span> 
<a name="9" /><span class="Maybe">       9:</span> <span class="f">#</span><span class="n">ifndef</span> <span class="b">__ASSEMBLY__</span>
<a name="10" /><span class="Maybe">      10:</span> 
<a name="11" /><span class="False">      11:</span> <span class="f">#</span><span class="n">ifdef</span> <span class="b">__i386__</span>
<a name="12" /><span class="False">      12:</span> <span class="k">/* this struct defines the way the registers are stored on the</span>
<a name="13" /><span class="False">      13:</span> <span class="k">   stack during a system call. */</span>
<a name="14" /><span class="False">      14:</span> 
<a name="15" /><span class="False">      15:</span> <span class="f">#</span><span class="n">ifndef</span> <a href="cpu.c_macros_ref.html#_X19LRVJORUxfX18w"><span class="b">__KERNEL__</span></a>
<a name="16" /><span class="False">      16:</span> 
<a name="17" /><span class="False">      17:</span> <span class="m">struct</span> <span class="b">pt_regs</span> <span class="f">{</span>
<a name="18" /><span class="False">      18:</span>     <span class="m">long</span> <span class="b">ebx</span><span class="f">;</span>
<a name="19" /><span class="False">      19:</span>     <span class="m">long</span> <span class="b">ecx</span><span class="f">;</span>
<a name="20" /><span class="False">      20:</span>     <span class="m">long</span> <span class="b">edx</span><span class="f">;</span>
<a name="21" /><span class="False">      21:</span>     <span class="m">long</span> <span class="b">esi</span><span class="f">;</span>
<a name="22" /><span class="False">      22:</span>     <span class="m">long</span> <span class="b">edi</span><span class="f">;</span>
<a name="23" /><span class="False">      23:</span>     <span class="m">long</span> <span class="b">ebp</span><span class="f">;</span>
<a name="24" /><span class="False">      24:</span>     <span class="m">long</span> <span class="b">eax</span><span class="f">;</span>
<a name="25" /><span class="False">      25:</span>     <span class="m">int</span>  <span class="b">xds</span><span class="f">;</span>
<a name="26" /><span class="False">      26:</span>     <span class="m">int</span>  <span class="b">xes</span><span class="f">;</span>
<a name="27" /><span class="False">      27:</span>     <span class="m">int</span>  <span class="b">xfs</span><span class="f">;</span>
<a name="28" /><span class="False">      28:</span>     <span class="m">int</span>  <span class="b">xgs</span><span class="f">;</span>
<a name="29" /><span class="False">      29:</span>     <span class="m">long</span> <span class="b">orig_eax</span><span class="f">;</span>
<a name="30" /><span class="False">      30:</span>     <span class="m">long</span> <span class="b">eip</span><span class="f">;</span>
<a name="31" /><span class="False">      31:</span>     <span class="m">int</span>  <span class="b">xcs</span><span class="f">;</span>
<a name="32" /><span class="False">      32:</span>     <span class="m">long</span> <span class="b">eflags</span><span class="f">;</span>
<a name="33" /><span class="False">      33:</span>     <span class="m">long</span> <span class="b">esp</span><span class="f">;</span>
<a name="34" /><span class="False">      34:</span>     <span class="m">int</span>  <span class="b">xss</span><span class="f">;</span>
<a name="35" /><span class="False">      35:</span> <span class="f">}</span><span class="f">;</span>
<a name="36" /><span class="False">      36:</span> 
<a name="37" /><span class="False">      37:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* __KERNEL__ */</span>
<a name="38" /><span class="False">      38:</span> 
<a name="39" /><span class="Maybe">      39:</span> <span class="f">#</span><span class="n">else</span> <span class="k">/* __i386__ */</span>
<a name="40" /><span class="Maybe">      40:</span> 
<a name="41" /><span class="False">      41:</span> <span class="f">#</span><span class="n">ifndef</span> <a href="cpu.c_macros_ref.html#_X19LRVJORUxfX18w"><span class="b">__KERNEL__</span></a>
<a name="42" /><span class="False">      42:</span> 
<a name="43" /><span class="False">      43:</span> <span class="m">struct</span> <span class="b">pt_regs</span> <span class="f">{</span>
<a name="44" /><span class="False">      44:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r15</span><span class="f">;</span>
<a name="45" /><span class="False">      45:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r14</span><span class="f">;</span>
<a name="46" /><span class="False">      46:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r13</span><span class="f">;</span>
<a name="47" /><span class="False">      47:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r12</span><span class="f">;</span>
<a name="48" /><span class="False">      48:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rbp</span><span class="f">;</span>
<a name="49" /><span class="False">      49:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rbx</span><span class="f">;</span>
<a name="50" /><span class="False">      50:</span> <span class="k">/* arguments: non interrupts/non tracing syscalls only save up to here*/</span>
<a name="51" /><span class="False">      51:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r11</span><span class="f">;</span>
<a name="52" /><span class="False">      52:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r10</span><span class="f">;</span>
<a name="53" /><span class="False">      53:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r9</span><span class="f">;</span>
<a name="54" /><span class="False">      54:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">r8</span><span class="f">;</span>
<a name="55" /><span class="False">      55:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rax</span><span class="f">;</span>
<a name="56" /><span class="False">      56:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rcx</span><span class="f">;</span>
<a name="57" /><span class="False">      57:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rdx</span><span class="f">;</span>
<a name="58" /><span class="False">      58:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rsi</span><span class="f">;</span>
<a name="59" /><span class="False">      59:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rdi</span><span class="f">;</span>
<a name="60" /><span class="False">      60:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">orig_rax</span><span class="f">;</span>
<a name="61" /><span class="False">      61:</span> <span class="k">/* end of arguments */</span>
<a name="62" /><span class="False">      62:</span> <span class="k">/* cpu exception frame or undefined */</span>
<a name="63" /><span class="False">      63:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rip</span><span class="f">;</span>
<a name="64" /><span class="False">      64:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">cs</span><span class="f">;</span>
<a name="65" /><span class="False">      65:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">eflags</span><span class="f">;</span>
<a name="66" /><span class="False">      66:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">rsp</span><span class="f">;</span>
<a name="67" /><span class="False">      67:</span>     <span class="m">unsigned</span> <span class="m">long</span> <span class="b">ss</span><span class="f">;</span>
<a name="68" /><span class="False">      68:</span> <span class="k">/* top of stack page */</span>
<a name="69" /><span class="False">      69:</span> <span class="f">}</span><span class="f">;</span>
<a name="70" /><span class="False">      70:</span> 
<a name="71" /><span class="Maybe">      71:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* __KERNEL__ */</span>
<a name="72" /><span class="Maybe">      72:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* !__i386__ */</span>
<a name="73" /><span class="Maybe">      73:</span> 
<a name="74" /><span class="Maybe">      74:</span> 
<a name="75" /><span class="Maybe">      75:</span> 
<a name="76" /><span class="Maybe">      76:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* !__ASSEMBLY__ */</span>
<a name="77" /><span class="Maybe">      77:</span> 
<a name="78" /><span class="True">      78:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* _UAPI_ASM_X86_PTRACE_H */</span>
<a name="79" /><span class="True">      79:</span> </pre>
  </body>
</html>
